<div class="content">
	<form class="form-horizontal" name="cpForm" ng-submit="vm.submitForm(cpForm.$valid)" novalidate>
		<div class="ibox">
            <div class="ibox-title">
                <h5>打卡点信息</h5>
            </div>
            <div class="ibox-content">
                <div class="form-group">
                    <label class="col-lg-3 col-lg-offset-3">用于计时的打卡点请在科目中设置关联，否则不能用于计时！</label>

                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">打卡点编号 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <input type="text" name="cpIndex" class="form-control" ng-model="vm.cp.cp_index" disabled required>
                    </div>
                </div>
            	<div class="form-group margin-bottom-20">
                	<label class="col-lg-3 control-label">打卡点名称 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                    	<input type="text" name="cpName" class="form-control" placeholder="请输入打卡点名称" ng-model="vm.cp.cp_name" required>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-lg-3 control-label">打卡计时点 </label>
                    <div class="col-lg-3">
                        <label class="checkbox">
                            <input icheck type="checkbox" ng-model="vm.isTimingPoint">
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">视频直播点 </label>
                    <div class="col-lg-3 margin-bottom-20">
                        <label class="checkbox">
                            <input icheck type="checkbox" ng-model="vm.isLiveVideo">
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">绑定设备列表 </label>
                    <div class="col-lg-3 margin-bottom-20">
                        <link href="./styles/plugins/chosen/chosen.css" rel="stylesheet">
                        <div class="input-group">
                            <select id="select_id" data-placeholder="请选择设备" class="chosen-select" ng-model="vm.bindEquipment" multiple style="width:350px;">
                            </select>
                        </div>

                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-3 col-lg-3">
                        <button type="button" class="btn btn-sm btn-default" ui-sref="dashboard.race.detail"><i class="fa fa-times">取消</i></button>
                        <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save">保存</i></button>
                        <button type="button" class="btn btn-sm btn-danger" ng-click="vm.deleteItems($state.params.cp_id)" ng-if="$state.params.cp_id">
                            <i class="fa fa-trash-o">删除</i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
	</form>
</div>